package study02;
import java.util.Scanner;

/**
* @author GZQ
* @Date 2023/11/5
 */

//判断奇偶
public class ParityJudgment {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入一个数：");
        int a = input.nextInt();
        if (a % 2 == 0) {
            System.out.println(a + " 是一个偶数");
        } else {
            System.out.println(a + " 是一个奇数");
        }
    }
}
